package demo.demo02;
import java.util.Scanner;

public class Switch {
    public static void main(String []args){
    System.out.println("请输入一个数：");
    Scanner sc=new Scanner(System.in);
    int num=sc.nextInt();
    switch (num){
        case 1://"1"为输入语句
            System.out .println("一");
            break;
        case 2:
            System.out .println("二");
            break;
        case 3:
            System.out .println("三");
            break;
        case 4:
            System.out .println("四");
            break;
        case 5:
            System.out .println("五");
            break;
            case 6:
            System.out .println("六");
            break;
        default:
            System.out.println("数字不合法!");
    }
    }
}
